package mcia_administrative;

import java.io.*;
import java.util.*;
import javax.swing.DefaultListModel;
import javax.swing.UIManager;

/**
 * GlobalScenes.java - here we can add global scenes with our local scenes
 * 
 * @author mcia
 */
public class GlobalScenes extends javax.swing.JFrame {

    public String currentUser = "admin";                                        //name of current user (get from other window or set still)
    int elements = 0, lines = 0;
    int whichRow = 0;                                                           //used to determine witch row should be now populated
    private int sceneNumber = 0;                                                //which scene we are at
    DefaultListModel listModel = new DefaultListModel();

    public GlobalScenes() {
        initComponents();
        //setting text to status label
        StatusLabel.setText("User: " + currentUser);
        GSlist.setModel(listModel);
        uploadCLs();
        insertDataFromArrayList();
        if (listModel.getSize() > 0) {
            GSlist.setSelectedIndex(0);
            String index = (String) listModel.get(GSlist.getSelectedIndex());
            renameGSceneField.setText(index);
        } else {
            renameButton.setEnabled(false);
        }
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        ClosingConfirmation = new javax.swing.JFrame();
        jPanel5 = new javax.swing.JPanel();
        jLabel2 = new javax.swing.JLabel();
        OK = new javax.swing.JButton();
        Cancel = new javax.swing.JButton();
        jPanel4 = new javax.swing.JPanel();
        jPanel1 = new javax.swing.JPanel();
        StatusLabel = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        SceneLabel = new javax.swing.JLabel();
        DescriptionLabel = new javax.swing.JLabel();
        jPanel3 = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        CLsTab = new javax.swing.JTable();
        backButton = new javax.swing.JButton();
        jLabel3 = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        GSlist = new javax.swing.JList();
        jLabel1 = new javax.swing.JLabel();
        creatNewSceneButton = new javax.swing.JButton();
        newSceneField = new javax.swing.JTextField();
        removeSceneButton = new javax.swing.JButton();
        CLsCombobox = new javax.swing.JComboBox();
        LScenesCombobox = new javax.swing.JComboBox();
        hourSpinner = new javax.swing.JSpinner();
        minuteSpinner = new javax.swing.JSpinner();
        secondSpinner = new javax.swing.JSpinner();
        addCLButton = new javax.swing.JButton();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        renameGSceneField = new javax.swing.JTextField();
        renameButton = new javax.swing.JButton();
        jLabel11 = new javax.swing.JLabel();
        removeCLButton = new javax.swing.JButton();

        ClosingConfirmation.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        ClosingConfirmation.setTitle("Test");
        ClosingConfirmation.setAlwaysOnTop(true);
        ClosingConfirmation.setBounds(new java.awt.Rectangle(500, 350, 0, 0));
        ClosingConfirmation.setMinimumSize(new java.awt.Dimension(318, 153));
        ClosingConfirmation.setName("closeConfirmation"); // NOI18N

        jPanel5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        jLabel2.setFont(new java.awt.Font("Tahoma", 0, 18));
        jLabel2.setText("Do you really want to quit?");

        OK.setText("OK");
        OK.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                OKActionPerformed(evt);
            }
        });

        Cancel.setText("Cancel");
        Cancel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CancelActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGap(45, 45, 45)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addComponent(OK, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(Cancel))
                    .addComponent(jLabel2))
                .addContainerGap(56, Short.MAX_VALUE))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addComponent(jLabel2)
                .addGap(36, 36, 36)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Cancel)
                    .addComponent(OK))
                .addContainerGap(24, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout ClosingConfirmationLayout = new javax.swing.GroupLayout(ClosingConfirmation.getContentPane());
        ClosingConfirmation.getContentPane().setLayout(ClosingConfirmationLayout);
        ClosingConfirmationLayout.setHorizontalGroup(
            ClosingConfirmationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        ClosingConfirmationLayout.setVerticalGroup(
            ClosingConfirmationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        setBounds(new java.awt.Rectangle(200, 20, 800, 600));
        setMaximizedBounds(new java.awt.Rectangle(0, 0, 800, 600));
        setMinimumSize(new java.awt.Dimension(800, 600));
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                formWindowClosing(evt);
            }
        });

        jPanel4.setMaximumSize(new java.awt.Dimension(800, 600));
        jPanel4.setPreferredSize(new java.awt.Dimension(800, 600));

        jPanel1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jPanel1.setMaximumSize(new java.awt.Dimension(800, 32767));
        jPanel1.setPreferredSize(new java.awt.Dimension(800, 26));

        StatusLabel.setMaximumSize(new java.awt.Dimension(800, 600));

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(StatusLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 412, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(372, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(StatusLabel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 20, Short.MAX_VALUE)
        );

        jPanel2.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jPanel2.setMaximumSize(new java.awt.Dimension(800, 32767));
        jPanel2.setPreferredSize(new java.awt.Dimension(800, 65));

        SceneLabel.setFont(new java.awt.Font("Tahoma", 0, 18));
        SceneLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        SceneLabel.setText("Global Scenes");

        DescriptionLabel.setForeground(new java.awt.Color(51, 102, 255));
        DescriptionLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        DescriptionLabel.setText("Description Label");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(DescriptionLabel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 774, Short.MAX_VALUE)
                    .addComponent(SceneLabel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 774, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addComponent(SceneLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 12, Short.MAX_VALUE)
                .addComponent(DescriptionLabel))
        );

        jPanel3.setMaximumSize(new java.awt.Dimension(800, 410));
        jPanel3.setPreferredSize(new java.awt.Dimension(800, 410));

        jScrollPane2.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
        jScrollPane2.setViewportBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jScrollPane2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jScrollPane2MouseClicked(evt);
            }
        });

        CLsTab.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "CL", "Local Scene", "Scheduled"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        CLsTab.setPreferredSize(new java.awt.Dimension(300, 500));
        CLsTab.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);
        CLsTab.getTableHeader().setReorderingAllowed(false);
        CLsTab.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                CLsTabMouseClicked(evt);
            }
        });
        jScrollPane2.setViewportView(CLsTab);
        CLsTab.getColumnModel().getColumn(0).setResizable(false);
        CLsTab.getColumnModel().getColumn(1).setResizable(false);
        CLsTab.getColumnModel().getColumn(2).setResizable(false);

        backButton.setText("Back");
        backButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                backButtonActionPerformed(evt);
            }
        });

        jLabel3.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel3.setText("List of LS in this global scene:");

        GSlist.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        GSlist.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                GSlistValueChanged(evt);
            }
        });
        jScrollPane1.setViewportView(GSlist);

        jLabel1.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel1.setText("List of global scenes:");

        creatNewSceneButton.setText("Create new Global Scene");
        creatNewSceneButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                creatNewSceneButtonActionPerformed(evt);
            }
        });

        newSceneField.setText("New global scene");

        removeSceneButton.setText("Remove Global Scene");
        removeSceneButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                removeSceneButtonActionPerformed(evt);
            }
        });

        CLsCombobox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CLsComboboxActionPerformed(evt);
            }
        });

        LScenesCombobox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "-------Select LS-------" }));
        LScenesCombobox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                LScenesComboboxActionPerformed(evt);
            }
        });

        hourSpinner.setFont(new java.awt.Font("Tahoma", 0, 14));
        hourSpinner.setModel(new javax.swing.SpinnerNumberModel(0, 0, 23, 1));

        minuteSpinner.setFont(new java.awt.Font("Tahoma", 0, 14));
        minuteSpinner.setModel(new javax.swing.SpinnerNumberModel(0, 0, 59, 1));

        secondSpinner.setFont(new java.awt.Font("Tahoma", 0, 14));
        secondSpinner.setModel(new javax.swing.SpinnerNumberModel(0, 0, 59, 1));

        addCLButton.setText("Add CL");
        addCLButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                addCLButtonActionPerformed(evt);
            }
        });

        jLabel4.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel4.setText("Add CL to global scene:");

        jLabel5.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel5.setText("Hour:");

        jLabel6.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel6.setText("Minute:");

        jLabel7.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel7.setText("Second:");

        jLabel8.setFont(new java.awt.Font("Tahoma", 0, 13));
        jLabel8.setText("Select CL:");

        jLabel9.setFont(new java.awt.Font("Tahoma", 0, 13));
        jLabel9.setText("Select Local Scene:");

        jLabel10.setFont(new java.awt.Font("Tahoma", 0, 13));
        jLabel10.setText("Select trigger time:");

        renameButton.setText("Rename");
        renameButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                renameButtonActionPerformed(evt);
            }
        });

        jLabel11.setFont(new java.awt.Font("Tahoma", 0, 13));
        jLabel11.setText("New Scene name:");

        removeCLButton.setText("Remove CL");
        removeCLButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                removeCLButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(removeSceneButton, javax.swing.GroupLayout.DEFAULT_SIZE, 195, Short.MAX_VALUE)
                            .addComponent(renameButton, javax.swing.GroupLayout.DEFAULT_SIZE, 195, Short.MAX_VALUE)
                            .addComponent(renameGSceneField, javax.swing.GroupLayout.DEFAULT_SIZE, 195, Short.MAX_VALUE)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 195, Short.MAX_VALUE)
                            .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 195, Short.MAX_VALUE))
                        .addGap(49, 49, 49))
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addGroup(jPanel3Layout.createSequentialGroup()
                            .addComponent(jLabel11)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 97, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addComponent(newSceneField)
                        .addComponent(creatNewSceneButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addGap(4, 4, 4)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 251, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 269, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(removeCLButton, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(48, 48, 48)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel4)
                                    .addGroup(jPanel3Layout.createSequentialGroup()
                                        .addGap(2, 2, 2)
                                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(LScenesCombobox, 0, 175, Short.MAX_VALUE)
                                            .addComponent(CLsCombobox, 0, 175, Short.MAX_VALUE)
                                            .addComponent(jLabel9)
                                            .addComponent(jLabel8)
                                            .addComponent(jLabel10)
                                            .addGroup(jPanel3Layout.createSequentialGroup()
                                                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                    .addComponent(jLabel5)
                                                    .addComponent(hourSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                .addGap(18, 18, 18)
                                                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                    .addGroup(jPanel3Layout.createSequentialGroup()
                                                        .addGap(1, 1, 1)
                                                        .addComponent(jLabel6))
                                                    .addComponent(minuteSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                .addGap(18, 18, 18)
                                                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                                    .addGroup(jPanel3Layout.createSequentialGroup()
                                                        .addGap(1, 1, 1)
                                                        .addComponent(secondSpinner))
                                                    .addComponent(jLabel7)))
                                            .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 175, Short.MAX_VALUE))))
                                .addGap(48, 48, 48))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                                .addComponent(addCLButton, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(57, 57, 57))))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                        .addGap(90, 90, 90)
                        .addComponent(backButton, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(76, 76, 76))))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addComponent(jLabel4)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel8)
                .addGap(5, 5, 5)
                .addComponent(CLsCombobox, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel9)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(LScenesCombobox, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jLabel10)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addComponent(jLabel5)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(hourSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel3Layout.createSequentialGroup()
                            .addComponent(jLabel7)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(secondSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(jPanel3Layout.createSequentialGroup()
                            .addComponent(jLabel6)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(minuteSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGap(27, 27, 27)
                .addComponent(addCLButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(93, 93, 93)
                .addComponent(backButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(54, Short.MAX_VALUE))
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel1))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(renameGSceneField, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(renameButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(removeSceneButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel11)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(newSceneField, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(creatNewSceneButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 301, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(removeCLButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(117, 117, 117))))
        );

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(20, 20, 20))
            .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel4Layout.createSequentialGroup()
                    .addGap(5, 5, 5)
                    .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 514, Short.MAX_VALUE)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel4Layout.createSequentialGroup()
                    .addGap(65, 65, 65)
                    .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 499, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(36, Short.MAX_VALUE)))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 800, Short.MAX_VALUE)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, 800, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 600, Short.MAX_VALUE)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void insertDataFromArrayList() {
        if (!Main.globalScenes.isEmpty()) {
            System.out.println(Main.globalScenes.size());
            for (int i = 0; i < Main.globalScenes.size(); i++) {
                String read = Main.globalSceneName.get(i);
                listModel.addElement(read);
                sceneNumber++;
            }
        }
    }

    private void uploadCLs() {
        //upload CLs to combobox
        if (LScenesCombobox.getItemCount() == 1) {
            addCLButton.setEnabled(false);
            LScenesCombobox.setEnabled(false);
            hourSpinner.setEnabled(false);
            minuteSpinner.setEnabled(false);
            secondSpinner.setEnabled(false);
            removeCLButton.setEnabled(false);
        }

        if (Main.allUnits.size() > 1) {
            //for every floor file
            for (int i = 1; i < Main.allUnits.size(); i++) {
                //for every CL
                for (int m = 0; m < Main.allUnits.get(i).size(); m++) {
                    if (Main.allUnits.get(i).get(m)[0].startsWith("CL")) {
                        //add CL to Combobox
                        CLsCombobox.addItem(Main.allUnits.get(i).get(m)[0]);
                        System.out.println("Sucessfully added: " + Main.allUnits.get(i).get(m)[0] + " to Combobox");
                    }
                }
            }
        }
    }
    private void OKActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_OKActionPerformed
        //exit ScenesForCL
        this.dispose();
        ClosingConfirmation.dispose();
}//GEN-LAST:event_OKActionPerformed

    private void CancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CancelActionPerformed
        //hide closingConfirmation
        ClosingConfirmation.setVisible(false);
}//GEN-LAST:event_CancelActionPerformed

    private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosing
        //show closingConfirmation
        ClosingConfirmation.setVisible(true);
    }//GEN-LAST:event_formWindowClosing

    private void backButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_backButtonActionPerformed
        this.dispose();
    }//GEN-LAST:event_backButtonActionPerformed

    private void GSlistValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_GSlistValueChanged
        //what happens if item selected on list was changed
        if (!GSlist.isSelectionEmpty()) {
            String index = (String) listModel.get(GSlist.getSelectedIndex());
            renameGSceneField.setText(index);
            renameButton.setEnabled(true);
            if (LScenesCombobox.getItemCount() >= 1 && LScenesCombobox.isEnabled()) {
                addCLButton.setEnabled(true);
            }
            whichRow = 0;
            for (int j = 0; j < CLsTab.getRowCount(); j++) {
                for (int x = 0; x < CLsTab.getColumnCount(); ++x) {
                    //cleaning table
                    CLsTab.setValueAt(null, j, x);
                }
            }
            if (!Main.globalScenes.get(GSlist.getSelectedIndex()).isEmpty()) {
                for (int i = 0; i < Main.globalScenes.get(GSlist.getSelectedIndex()).size(); i++) {
                    CLsTab.setValueAt("" + Main.globalScenes.get(GSlist.getSelectedIndex()).get(i)[0], whichRow, 0);
                    CLsTab.setValueAt("" + Main.globalScenes.get(GSlist.getSelectedIndex()).get(i)[1], whichRow, 1);
                    CLsTab.setValueAt("" + Main.globalScenes.get(GSlist.getSelectedIndex()).get(i)[2], whichRow, 2);
                    whichRow++;
                }
            }
        }
}//GEN-LAST:event_GSlistValueChanged

    private void jScrollPane2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jScrollPane2MouseClicked
    }//GEN-LAST:event_jScrollPane2MouseClicked

    private void CLsTabMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_CLsTabMouseClicked
        removeCLButton.setEnabled(true);
}//GEN-LAST:event_CLsTabMouseClicked

    private void CLsComboboxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CLsComboboxActionPerformed
        //what to do if the selection in Cl comboBox was changed
        int CLnumber;
        int floorNumber;
        String temporary = (String) CLsCombobox.getSelectedItem();
        temporary = temporary.substring(3);
        StringTokenizer st1 = new StringTokenizer(temporary, ".");
        floorNumber = Integer.parseInt(st1.nextToken());
        CLnumber = Integer.parseInt(st1.nextToken());

        File sourcefile = new File("temp", "LS" + floorNumber + "." + CLnumber + ".txt");

        try {
            //reading LS from a file and inserting them to LS comboBox
            FileReader fr1 = new FileReader(sourcefile);
            BufferedReader br = new BufferedReader(fr1);
            String dbRecord;
            int j = LScenesCombobox.getItemCount();
            for (int i = 0; i < j; i++) {
                LScenesCombobox.removeItemAt(0);
            }
            //reading txt config file
            while ((dbRecord = br.readLine()) != null) {
                StringTokenizer st = new StringTokenizer(dbRecord, ";");
                if (st.hasMoreElements()) {
                    LScenesCombobox.addItem(st.nextToken());
                }
            }
            if (LScenesCombobox.getItemCount() > 0) {
                LScenesCombobox.setEnabled(true);
                hourSpinner.setEnabled(true);
                minuteSpinner.setEnabled(true);
                secondSpinner.setEnabled(true);

            }
            if (!listModel.isEmpty() && !GSlist.isSelectionEmpty()) {
                addCLButton.setEnabled(true);
            }

        } catch (Exception ex) {
            System.out.println("Error with file: " + ex + " Filename: ");
            int j = LScenesCombobox.getItemCount();
            for (int i = 0; i < j; i++) {
                LScenesCombobox.removeItemAt(0);
            }
            if (LScenesCombobox.getItemCount() == 0) {
                LScenesCombobox.addItem("-------Select LS-------");
                LScenesCombobox.setEnabled(false);
                hourSpinner.setEnabled(false);
                minuteSpinner.setEnabled(false);
                secondSpinner.setEnabled(false);
                addCLButton.setEnabled(false);
            }
        }

    }//GEN-LAST:event_CLsComboboxActionPerformed

    private void addCLButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addCLButtonActionPerformed
        //adding selected CL to table
        CLsTab.clearSelection();
        //setting table row from comboboxes and spinners
        CLsTab.setValueAt("" + CLsCombobox.getSelectedItem(), whichRow, 0);
        CLsTab.setValueAt("" + LScenesCombobox.getSelectedItem(), whichRow, 1);
        String hour = hourSpinner.getValue() + ":" + minuteSpinner.getValue() + ":" + secondSpinner.getValue();
        CLsTab.setValueAt("" + hour, whichRow, 2);
        whichRow++;
        String[] CL = new String[]{"" + CLsCombobox.getSelectedItem(), "" + LScenesCombobox.getSelectedItem(), hour};
        //getting global scene and adding CL with local scene and scheduled
        Main.globalScenes.get(GSlist.getSelectedIndex()).add(CL);
        if (CLsTab.getSelectedRow() == -1) {
            removeCLButton.setEnabled(false);
        }
    }//GEN-LAST:event_addCLButtonActionPerformed

    private void LScenesComboboxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_LScenesComboboxActionPerformed
    }//GEN-LAST:event_LScenesComboboxActionPerformed

    private void creatNewSceneButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_creatNewSceneButtonActionPerformed

        String read = newSceneField.getText();

        if (listModel.contains(read)) {
            System.out.println("Element already exist!");
            DescriptionLabel.setText("Element Already Exist");
        } else {
            listModel.addElement(read);
            Main.globalScenes.add(sceneNumber, new ArrayList<String[]>());
            Main.globalSceneName.add(sceneNumber, read);
            sceneNumber++;
        }
    }//GEN-LAST:event_creatNewSceneButtonActionPerformed

    private void removeSceneButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_removeSceneButtonActionPerformed
        if (GSlist.getSelectedValue() != null) {
            Main.globalScenes.remove(GSlist.getSelectedIndex());
            Main.globalSceneName.remove(GSlist.getSelectedIndex());
            sceneNumber--;
            listModel.removeElementAt(GSlist.getSelectedIndex());
            renameGSceneField.setText("");
            if (listModel.getSize() == 0) {
                renameButton.setEnabled(false);
                addCLButton.setEnabled(false);
            }
            GSlist.setSelectedIndex(0);
        }
        //clean table CL list
        if (listModel.getSize() == 0) {
            for (int j = 0; j < CLsTab.getRowCount(); j++) {
                for (int x = 0; x < CLsTab.getColumnCount(); ++x) {
                    //cleaning table
                    CLsTab.setValueAt(null, j, x);
                }
            }
        }
    }//GEN-LAST:event_removeSceneButtonActionPerformed

    private void renameButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_renameButtonActionPerformed
        String old = (String) GSlist.getSelectedValue();
        String index = renameGSceneField.getText();
        if (listModel.contains(index)) {
            //what to do if name is already on the list
            System.out.println("Element already exist!");
            DescriptionLabel.setText("Element Already Exist");
        } else {
            if (index.equals("")) {
                index = old;
            }
            listModel.set(GSlist.getSelectedIndex(), index);
            Main.globalSceneName.set(GSlist.getSelectedIndex(), index);
        }
    }//GEN-LAST:event_renameButtonActionPerformed

    private void removeCLButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_removeCLButtonActionPerformed
        if (CLsTab.getValueAt(CLsTab.getSelectedRow(), CLsTab.getSelectedColumn()) != null) {
            //removing selected row from the table and moving the rest up so that there won't be any free row
            int selRow = CLsTab.getSelectedRow();
            int selInd = GSlist.getSelectedIndex();
            Main.globalScenes.get(selInd).remove(selRow);
            CLsTab.setValueAt(null, CLsTab.getSelectedRow(), 0);
            CLsTab.setValueAt(null, CLsTab.getSelectedRow(), 1);
            CLsTab.setValueAt(null, CLsTab.getSelectedRow(), 2);
            whichRow--;

            for (int b = CLsTab.getSelectedRow(); b < CLsTab.getRowCount() - 1; b++) {
                CLsTab.setValueAt(CLsTab.getValueAt(b + 1, 0), b, 0);
                CLsTab.setValueAt(CLsTab.getValueAt(b + 1, 1), b, 1);
                CLsTab.setValueAt(CLsTab.getValueAt(b + 1, 2), b, 2);
            }
            if (CLsTab.getValueAt(0, 0) == null) {
                removeCLButton.setEnabled(false);
            }
        }

    }//GEN-LAST:event_removeCLButtonActionPerformed

    public static void main(String args[]) {
        //setting Windows Look and Feel
        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (Exception ex) {
            System.out.println("Error setting native LAF: " + ex);
        }

        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new GlobalScenes().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JComboBox CLsCombobox;
    private javax.swing.JTable CLsTab;
    private javax.swing.JButton Cancel;
    private javax.swing.JFrame ClosingConfirmation;
    private javax.swing.JLabel DescriptionLabel;
    private javax.swing.JList GSlist;
    private javax.swing.JComboBox LScenesCombobox;
    private javax.swing.JButton OK;
    private javax.swing.JLabel SceneLabel;
    private javax.swing.JLabel StatusLabel;
    private javax.swing.JButton addCLButton;
    private javax.swing.JButton backButton;
    private javax.swing.JButton creatNewSceneButton;
    private javax.swing.JSpinner hourSpinner;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSpinner minuteSpinner;
    private javax.swing.JTextField newSceneField;
    private javax.swing.JButton removeCLButton;
    private javax.swing.JButton removeSceneButton;
    private javax.swing.JButton renameButton;
    private javax.swing.JTextField renameGSceneField;
    private javax.swing.JSpinner secondSpinner;
    // End of variables declaration//GEN-END:variables
}
